from api.Autometer_api import Autometer
from common import loggin_config
logger=loggin_config.get_logger()
def Autometer_login_token():
    data = {
        "name": "test",
        "password": "test123"
    }
    r=Autometer().login(data)
    token=r.json().get("data")
    logger.info(f"token返回结果:{token}")
    return token


if __name__=="__main__":
    Autometer_login_token()
